import {useInfoStore} from "@/store/info.js";

// coach:add
export default function hasBtnPermission(permission) {
    //['coach:add','admin:add']
    const infoStore = useInfoStore()
    const btns = infoStore.btns
    return btns.indexOf(permission) != -1
}